package pers.exercise;

import pers.exercise.AbstractFactoryPattern.AbstractFactory;
import pers.exercise.AbstractFactoryPattern.FastFactory;
import pers.exercise.AbstractFactoryPattern.HtmlDocument;
import pers.exercise.AbstractFactoryPattern.WordDocument;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
       AbstractFactory factory = new FastFactory();
       HtmlDocument html = factory.createHtml("#Hello\nHello, world!");
       System.out.println(html.toHtml());

       WordDocument word = factory.creatWord("#Hello\nHello, world!");
       System.out.println(word.toWord());
        
    }
}
